<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>v-on指令的补充</title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<button @click="doit(11,25)">点击</button>
			<input type="text" @keydown.enter="writeMsg()" />
		
		</div>
	</body>
	<script>
		var app=new Vue({
			el:"#app",
			data:{
				
			},
			methods:{
				doit:function(num,num2){
					console.log(num)
					console.log(num2)
				},
				writeMsg:function(){
					console.log("触发方法")
				}
			}
		})
	</script>
</html>
